package com.sdweizan.sdk.bytedance.util;

import com.sdweizan.sdk.bytedance.error.BdErrorException;

import java.io.IOException;
import java.util.Map;

public interface RequestExecutor<T, E> {

  T execute(String requestUri, E requestBody) throws BdErrorException, IOException;

  T execute(String requestUri, E requestBody, Map<String, String> header) throws BdErrorException, IOException;

  void execute(String requestUri, E requestBody, ResponseHandler<T> handler)
      throws BdErrorException, IOException;
}
